package com.swpu.course_schedule.TeacherTest;

import com.swpu.course_schedule.POJO.Teacher;
import com.swpu.course_schedule.Util.SessionFactory;
import org.apache.ibatis.session.SqlSession;
import org.junit.jupiter.api.Test;

import java.util.List;

public class TeacherTest1 {
    @Test
    public void findAllTeacher(){
        SqlSession session = SessionFactory.initSqlSessoin();
        List<Teacher> teachers = session.selectList("findAllTeacher");
        for (Teacher t :
                teachers) {
            System.out.println(t);
        }
    }
}
